﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<script type="text/javascript">
    //该方法放到master里面了
    function MsgShow_submit() {
        var receiver_id = $("#creater_id").val();
        $.ajax({
            url: "/Message/MsgSend",
            type: "POST",
            data: { "receiver_id": receiver_id },
            success: function(data) {
                $.fn.deltab('msg-4-1');
                addtab('msg-1', "发送信息");
                $("#workarea-msg-1").html(data);
            }
        });
    }
    function Msg_repeat() {
        var msgid = $("#msg_id").val();
        $.ajax({
            url: "/Message/MsgSend",
            data: { "msg_id": msgid, "operType": 'repeat' },
            success: function(data) {
                addtab('msg-1', "发送信息");
                $("#workarea-msg-1").html(data);
            }
        })
    }
</script>

<div style="padding-top: 35px; padding-left: 10px;">
    <div>
        <%=Html.Hidden("creater_id", ViewData["creater_id"])%>
        <%=Html.Hidden("msg_id", ViewData["msg_id"])%>
    </div>
    <p style="margin: 5px 0;">
        标题：<%=Html.Label(ViewData["title"].ToString()) %></p>
    <p style="margin: 5px 0;">
        时间：<%=Html.Label(ViewData["sendtime"].ToString()) %></p>
    <p style="margin: 5px 0;">
        发件人：<%=Html.Label(ViewData["creater_name"].ToString()) %></p>
    <p style="margin: 5px 0;">
        内容：<%=ViewData["content"].ToString() %></p>
    <p style="margin: 5px 0;">
        附件:<%= ViewData["msg_appendix"]%></p>
    <p style="margin: 5px 0;">
        <input class="btn_style" type="button" value="回复" onclick="return MsgShow_submit()" />
        <input class="btn_style" type="button" value="转发" onclick="return Msg_repeat()" />
    </p>
</div>
